<include file="Public/header"/>

<div class="x-body">

    <form class="layui-form" action="{:U('sendquanhandle')}" method="post">

        <div class="layui-form-item">

            <label for="nickname" class="layui-form-label">

                <span class="x-red"></span>昵称

            </label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" readonly
                       autocomplete="off" value="{$data['nickname']}"  class="layui-input">
            </div>

        </div>


        <div class="layui-form-item">

            <label for="mobile" class="layui-form-label">

                手机号

            </label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" value="{$data['mobile']}" id="mobile" name="mobile"

                  readonly     autocomplete="off" class="layui-input">

            </div>

        </div>


        <div class="layui-form-item">

            <label for="status" class="layui-form-label">

                状态

            </label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="radio" name="status" value="2" <php>if($data['status'] ==2 ) echo 'checked'</php> title="冻结">

                <input type="radio" name="status" value="1" <php>if($data['status'] == 1) echo 'checked'</php> title="正常">

            </div>

        </div>

            

        <div class="layui-form-item">

            <label for="addtime" class="layui-form-label"> 注册时间</label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" value="<if condition='$data.id neq 0'>{$data['addtime']|date='Y-m-d H:i:s',###}</if>" readonly

                  name="addtime" id="addtime"      autocomplete="off" class="layui-input">

            </div>

        </div>
        
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>选择优惠券
            </label>
            <div class="layui-input-inline" style="width:80%;">
          <select name="quanid">
	          <foreach name="quan" item='v'>
	            <option value="{$v.id}" >{$v.tips}</option>
	          </foreach>
          </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>        
 
         <div class="layui-form-item">

            <label for="num" class="layui-form-label">
            <span class="x-red">*</span>赠送张数</label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" value="" id="num" name="num" required="" lay-verify="required"  autocomplete="off" class="layui-input">

            </div>

        </div>
             
         <div class="layui-form-item">

            <label for="reason" class="layui-form-label"><span class="x-red">*</span>赠送原因</label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" value="" id="reason" name="reason" required="" lay-verify="required"  autocomplete="off" class="layui-input">

            </div>

        </div>
        
        <div class="layui-form-item">

            <label for="end_time" class="layui-form-label"><span class="x-red">*</span>截止时间</label>

            <div class="layui-input-inline" style="width:80%;">

                <input type="text" value="" required="" lay-verify="required"

                  name="end_time" id="end_time"   autocomplete="off" class="layui-input">

            </div>

        </div>        
                
		<input type="hidden" value="{$data['id']}" name="uid">
		
		
        <div class="layui-form-item">

            <label for="L_repass" class="layui-form-label">

            </label>

            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">赠送优惠券</button>

        </div>

    </form>

</div>
<script>
layui.use('laydate', function(){
	var laydate = layui.laydate;
	laydate.render({
		 elem: '#addtime', //指定元素
		 type: 'datetime'
	});
	
	laydate.render({
		 elem: '#end_time', //指定元素
		 type: 'datetime'
	});	
});
</script>


<include file="Public/footer"/>